package com.amit.servlet;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class SessionListener  implements HttpSessionListener{

	@Override
	public void sessionCreated(HttpSessionEvent event) {
		HttpSession sess=event.getSession();
		sess.setAttribute("LANGUAGE", "en");
		System.out.println("NEW session crated"+sess.getId());
		
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent event) {
		
		HttpSession sess=event.getSession();
		
		System.out.println("session Destroyed"+sess.getId());
		
		
	}
	
	
	

}
